.al-sidebar {
    width: 180px;
    top: 55px;
    left: 0;
    z-index: 904;
    display: block;
    min-height: 100%;
    height: 100%;
    position: fixed;
    background-color: #ffffff;
}

.al-sidebar::after {
    content: "";
    background: rgba(0,0,0,.15);
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    -webkit-transform: translateZ(0);
}

.al-sidebar-list {
    margin: 0;
    padding: 18px 0 0 0;
    list-style: none;
}

.al-sidebar-sublist .subitem-submenu-list {
    padding-left: 15px;
}

.subitem-submenu-link .fa {
    top: 7px;
}

.al-sidebar-list-item {
    display: block;
    position: relative;
    float: none;
    padding: 0;
}

.al-sidebar-list-item.selected:not(.with-sub-menu) {
    background-color: #5f97fb;
}

a.al-sidebar-list-link {
    display: block;
    height: 42px;
    padding-left: 18px;
    text-shadow: none;
    font-size: 13px;
    text-decoration: none;
    color: #515253;
    line-height: 42px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

a.al-sidebar-list-link:hover {
    color: #5f97fb;
}

a.al-sidebar-list-link:hover b {
    color: #5f97fb;
}

a.al-sidebar-list-link i {
    margin-right: 18px;
    width: 16px;
    display: inline-block;
}

a.al-sidebar-list-link b {
    display: block;
    opacity: 1;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-shadow: none;
    font-size: 18px;
    position: absolute;
    right: 10px;
    top: 12px;
    padding: 0;
    text-align: center;
    color: #cccccc;
}

.slimScrollBar, .slimScrollRail {
    border-radius: 0 !important;
    width: 4px !important;
    left: 176px;
}

.al-sidebar-sublist {
    padding: 0;
    list-style: none;
    position: relative;
    display: none;
}

.al-sidebar-sublist.expanded {
    display: block;
}

.al-sidebar-sublist > li {
    display: block;
    float: none;
    padding: 0;
    border-bottom: none;
    position: relative;
}

.al-sidebar-sublist > li a {
    display: block;
    text-shadow: none;
    font-size: 13px;
    text-decoration: none;
    color: #515253;
    padding-left: 52px;
    height: auto;
    line-height: 29px;
}

.al-sidebar-sublist > li a:hover {
    color: #5f97fb;
}

.al-sidebar-sublist > li.selected:not(.with-sub-menu) > a {
    border: none;
    background-color: #f3f4f7;
    color: #5f97fb;
}

.sidebar-hover-elem {
    width: 4px;
    background: #5f97fb;
    position: absolute;
    top: -150px;
    left: 176px;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    -webkit-transition-property: top, height;
    transition-property: top, height;
    height: 42px;
    display: block;
}

.sidebar-select-elem {
    display: block;
    top: 94px;
}

@media (min-width: 1200px) {
    .menu-collapsed .al-main {
        margin-left: 50px;
    }

    .menu-collapsed .al-footer {
        padding-left: 83px;
    }
}

@media (min-width: 501px) {
    .menu-collapsed .al-sidebar {
        width: 52px;
    }

    .menu-collapsed .al-sidebar .fa-angle-down, .menu-collapsed .al-sidebar .fa-angle-up {
        opacity: 0;
    }

    .menu-collapsed .al-sidebar .al-sidebar-sublist {
        position: absolute;
        top: -1px;
        left: 52px;
        width: 0;
        display: block;
        overflow: hidden;
        -webkit-transition: width 0.5s ease;
        transition: width 0.5s ease;
    }

    .menu-collapsed .al-sidebar .al-sidebar-sublist.slide-right {
        width: 135px;
    }

    .menu-collapsed .al-sidebar .al-sidebar-sublist:before {
        display: none;
    }

    .menu-collapsed .al-sidebar .al-sidebar-sublist li:before {
        display: none;
    }

    .menu-collapsed .al-sidebar .al-sidebar-sublist li a {
        padding-left: 18px;
        padding-right: 18px;
        min-width: 130px;
        white-space: nowrap;
    }

    .menu-collapsed .al-sidebar .sidebar-hover-elem, .menu-collapsed .al-sidebar .sidebar-select-elem {
        left: 48px;
    }
}

@media (max-width: 1200px) and (min-width: 500px) {
    .al-main {
        margin-left: 50px;
    }

    .al-footer {
        padding-left: 83px;
    }
}

@media (max-width: 1200px) {
    .al-sidebar {
        width: 180px;
        -webkit-transition: width 0.5s ease;
        transition: width 0.5s ease;
    }

    .al-sidebar .fa-angle-down, .al-sidebar .fa-angle-up {
        opacity: 1;
    }

    .al-sidebar .al-sidebar-sublist {
        padding: 0;
        list-style: none;
        position: relative;
        display: none;
        top: auto;
        left: auto;
        background: none;
        width: auto;
        overflow: visible;
        -webkit-transition: none;
        transition: none;
    }

    .al-sidebar .al-sidebar-sublist.expanded {
        display: block;
    }

    .al-sidebar .al-sidebar-sublist > li {
        display: block;
        float: none;
        padding: 0;
        border-bottom: none;
        position: relative;
    }

    .al-sidebar .al-sidebar-sublist > li a {
        display: block;
        text-shadow: none;
        font-size: 13px;
        text-decoration: none;
        color: #515253;
        padding-left: 52px;
        height: auto;
        line-height: 29px;
    }

    .al-sidebar .al-sidebar-sublist > li a:hover {
        color: #5f97fb;
    }

    .al-sidebar .al-sidebar-sublist > li.selected:not(.with-sub-menu) > a {
        border: none;
        background-color: #5f97fb;
    }

    .al-sidebar .al-sidebar-sublist > li.selected:not(.with-sub-menu) > a:hover {
        color: #ffffff;
    }

    .al-sidebar .sidebar-hover-elem, .al-sidebar .sidebar-select-elem {
        left: 176px;
        -webkit-transition: left 0.5s ease;
        transition: left 0.5s ease;
    }
}

@media (max-width: 500px) {
    .menu-collapsed .al-sidebar {
        width: 0;
    }

    .menu-collapsed .sidebar-hover-elem, .menu-collapsed .sidebar-select-elem {
        display: none;
    }

    .al-main {
        margin-left: 0;
    }

    .al-footer {
        padding-left: 0;
    }
}